import request from "@/utils/requestBase";

/**
 * @description 根据Id获取民警或者所领导信息
 */
export function policeUserInfo(query: { policeUserId: number }) {
  return request.get({
    url: "/user/policeUserInfo",
    data: query,
  });
}

/**
 * @description 根据Id获取群众信息
 */
export function crowdUserInfo(query: { crowdUserId: number }) {
  return request.get({
    url: "/user/crowdUserInfo",
    data: query,
  });
}

/**
 * @description 修改群众信息
 */
export function updateCrowdUser(query: any) {
  return request.put({
    url: "/user/updateCrowdUser",
    data: query,
  });
}

/**
 * @description 通过定位获取群众所属社区
 */
export function getCommunityByPoint(query: any) {
  return request.get({
    url: "/wx-login/getCommunityByPoint",
    data: query,
  });
}
